// SysUtil.cpp


#include "stdafx.h"
#pragma warning(disable:4201)  // anonymous union
#include "mmsystem.h"
#include "tchar.h"
#include "strsafe.h"
#include "SysUtil.h"
#pragma comment(lib,"winmm.lib")

void SysUtil::DebugPrint(const char* p_sFormat,...)
{
	char sBuf[1024];
	va_list xArgList;
	va_start(xArgList,p_sFormat);
	::StringCchVPrintfA(sBuf,1024,p_sFormat,xArgList);
	va_end(xArgList);
	::OutputDebugStringA(sBuf);
};

uint32 SysUtil::GetSystemTick()
{
	return ::GetTickCount();
};

uint32 SysUtil::GetSystemMMTick()
{
	return ::timeGetTime();
};
